﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Sale.UI.Presenters;

namespace Sale.UI.ViewModels
{
    public  class BaseView<P> : Form, IBaseViewModel where P : BasePresenter, new()
    {
        public BaseView()
        {
            InitLayout();
        }
        protected P GetPresenter()
        {
            var presenter = new P();
            presenter.RegisterViewModel(this);
            return presenter;
        }
    }
}
